Use `isearch-search-fun' in `perform-replace' (bug#10885, bug#10887).
authorJuri Linkov <juri@jurta.org>
Thu, 6 Sep 2012 08:33:17 +0000 (11:33 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 6 Sep 2012 08:33:17 +0000 (11:33 +0300)
commit15b6dd03d7409399364d11e394a3df476afe16bf
tree7a788276d6cba6f7eede1f0486b7905077c5733e
parentc4653f86b2898d4b45761a5150bac2f73acdc4b3
Use `isearch-search-fun' in `perform-replace' (bug#10885, bug#10887).

* lisp/replace.el (replace-search-function)
(replace-re-search-function): Set default values to nil.
(perform-replace): Let-bind isearch-related variables based on
replace-related values, call `isearch-search-fun' and let-bind
the result to `search-function'.  Remove code that sets
`search-function' and `search-string' separately for
`delimited-flag'.
(replace-highlight): Add new argument `delimited-flag' and
rename other arguments to the names used in `perform-replace'.
Let-bind `isearch-word' to the argument `delimited-flag'.
lisp/ChangeLog
lisp/replace.el